package com.neutech.enumeration;

public enum ResultExceptionEnum {
    FORMAT_EXCEPTION(1001, "数据格式异常"),
    DATA_NON_EXIST(1002, "数据不存在"),
    DATA_ALREADY_EXIST(1003, "数据已存在"),

    USER_NOT_EXIST(2002, "用户不存在"),
    USERNAME_IN_USE(2003, "用户名已被使用"),
    LOGIN_NOT_MATCH(2004, "账号与密码不匹配"),

    UNKNOWN_ERROR_OCCURED(9999, "发生未知错误");

    private final Integer code;
    private final String message;

    ResultExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
